package jf.jcube.spec;

import jf.jcube.model.Dimension;

public class Selection {

    private final Dimension dimension;
    private final Object[] values;

    private final Operator op;

    public Selection(Dimension dim, Object value) {
        this(dim, Operator.EQUALS, value);
    }

    public Selection(Dimension dim, Operator op, Object... values) {
        this.dimension = dim;
        this.op = op;
        this.values = values;
    }

    public Dimension getDimension() {
        return dimension;
    }

    public Object[] getValues() {
        return values;
    }

    public Operator getOp() {
        return op;
    }

}
